package dao;

import information.LotteryNumber;

public interface LotteryTicketDAO {
public boolean drowNewLotteryTable();//一开奖就建立新表
public boolean drowNewlotteryNumber(String newLottery);//开奖号码
public boolean buyLottery(String name,String lotteryNumber);//用户购买票
//public LotteryNumber searchHistryLottery(int number);//搜锁每一期中奖号码
public Integer getNewLotteryIssue();//获取已经开奖的期数
public boolean checkUserBuyLottery(String name);//检查用户是否购买本期彩票
public String getLotteryNumber(int num);//获得某期彩票中奖号码
public boolean exchangeLottery(String name,int num);//兑奖
public boolean searchExchangeLottery(String name,int num);
public String userLottery(String name,int num);
public Integer statsNumber(int num);
}
